home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / makefile < prev    next >
Makefile  |  1994-03-13  |  2KB  |  110 lines

  1. #-----------------------------------------------------------------------;
  2. # MAKEFILE                                ;
  3. #                                    ;
  4. # PICTOR Makefile, Version 1.51, Copyright (c) 1992-94 SoftCircuits    ;
  5. # Redistributed by permission.                        ;
  6. #-----------------------------------------------------------------------;
  7.  
  8. COMPILER=2    # 1 = Microsoft C 7.0, 2 = Borland C 3.0
  9. MODEL=1        # 1 = small/tiny, 2 = medium, 3 = compact, 4 = large/huge
  10.  
  11. #-----------------------------------------------------------------------;
  12.  
  13. OBJS=beep.obj clock.obj cls.obj comgets.obj comlib.obj compress.obj\
  14.  computs.obj comread.obj comwrite.obj editbox.obj frame.obj freetree.obj\
  15.  getaltky.obj getcurs.obj gethotky.obj getscrn.obj getvconf.obj getwpos.obj\
  16.  help.obj hookints.obj hputs.obj hstrlen.obj initvid.obj kbdedit.obj\
  17.  kbdflush.obj kbdread.obj kbdready.obj kbdshift.obj listbox.obj menu.obj\
  18.  msgbox.obj multedit.obj pause.obj pickfile.obj prnputc.obj prnputs.obj\
  19.  prnwrite.obj pushcurs.obj pushstat.obj putscrn.obj scroll.obj setctype.obj\
  20.  setcurs.obj setwpos.obj showcurs.obj statusbr.obj tone.obj uncomp.obj\
  21.  vgetca.obj vputa.obj vputc.obj vputca.obj vputs.obj vrepa.obj vrepc.obj\
  22.  wclreol.obj wcolor.obj wopen.obj wpane.obj wputc.obj wputs.obj wrepa.obj\
  23.  wrepc.obj wsynccur.obj wtitle.obj xprintf.obj
  24.  
  25.  
  26. !IF $(COMPILER)==1
  27. SMALL=S
  28. MEDIUM=M
  29. COMPACT=C
  30. LARGE=L
  31. !ELSE
  32. !IF $(COMPILER)==2
  33. SMALL=s
  34. MEDIUM=m
  35. COMPACT=c
  36. LARGE=l
  37. !ELSE
  38. !ERROR Unknown compiler specified
  39. !ENDIF
  40. !ENDIF
  41.  
  42.  
  43. !IF $(MODEL)==1
  44. MODELCHR=$(SMALL)
  45. MODELSTR=small
  46. !ELSE
  47. !IF $(MODEL)==2
  48. MODELCHR=$(MEDIUM)
  49. MODELSTR=medium
  50. !ELSE
  51. !IF $(MODEL)==3
  52. MODELCHR=$(COMPACT)
  53. MODELSTR=compact
  54. !ELSE
  55. !IF $(MODEL)==4
  56. MODELCHR=$(LARGE)
  57. MODELSTR=large
  58. !ELSE
  59. !ERROR Unknown memory model
  60. !ENDIF
  61. !ENDIF
  62. !ENDIF
  63. !ENDIF
  64.  
  65.  
  66. !IF $(COMPILER)==1    # Microsoft C
  67.  
  68. LIBNAME=PICTOR$(MODELCHR)M
  69. CC=cl
  70. CFLAGS=/W3 /A$(MODELCHR) /Ox /c
  71. AS=ml
  72. AFLAGS=/Dmemmodel=$(MODELSTR) /W3 /c
  73. LIB=lib
  74.  
  75. .asm.obj:
  76.     $(AS) $(AFLAGS) $*.asm
  77.     $(LIB) $(LIBNAME)-+$*;
  78.  
  79. .c.obj:
  80.     $(CC) $(CFLAGS) $*.c
  81.     $(LIB) $(LIBNAME)-+$*;
  82.  
  83. $(LIBNAME).LIB : $(OBJS)
  84.  
  85.  
  86. !ENDIF
  87.  
  88.  
  89. !IF $(COMPILER)==2    # Borland C
  90.  
  91. LIBNAME=PICTOR$(MODELCHR)B
  92. CC=bcc
  93. CFLAGS=/m$(MODELCHR) /O1 /c
  94. AS=tasm
  95. AFLAGS=/Dmemmodel=$(MODELSTR) /W2 /m2 /mx
  96. LIB=tlib
  97.  
  98. .asm.obj:
  99.     $(AS) $(AFLAGS) $*.asm
  100.     $(LIB) $(LIBNAME)-+$*
  101.  
  102. .c.obj:
  103.     $(CC) $(CFLAGS) $*.c
  104.     $(LIB) $(LIBNAME)-+$*
  105.  
  106. $(LIBNAME).LIB : $(OBJS)
  107.  
  108. !ENDIF
  109.  
  110.